package com.xinqi.common.third.util;

public class TextUtil {

    /**
     * 截取字符串后几位
     *
     * @author dzy
     */
    public static String getLastNumStr(String text, int num) {
        if (text.length() > num) {
            int length = text.length();
            return text.substring(length - num, length);
        } else {
            return text;
        }
    }

}
